.class Lcom/waiqin365/lightapp/order/y;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kehu/b/ax;

.field final synthetic b:Landroid/widget/ListView;

.field final synthetic c:Lcom/waiqin365/lightapp/order/OrderDetailActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/order/OrderDetailActivity;Lcom/waiqin365/lightapp/kehu/b/ax;Landroid/widget/ListView;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/order/y;->c:Lcom/waiqin365/lightapp/order/OrderDetailActivity;

    iput-object p2, p0, Lcom/waiqin365/lightapp/order/y;->a:Lcom/waiqin365/lightapp/kehu/b/ax;

    iput-object p3, p0, Lcom/waiqin365/lightapp/order/y;->b:Landroid/widget/ListView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/y;->c:Lcom/waiqin365/lightapp/order/OrderDetailActivity;

    const v1, 0x7f080143

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/order/OrderDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/order/y;->a:Lcom/waiqin365/lightapp/kehu/b/ax;

    iget-object v2, p0, Lcom/waiqin365/lightapp/order/y;->b:Landroid/widget/ListView;

    invoke-virtual {v2}, Landroid/widget/ListView;->getHeaderViewsCount()I

    move-result v2

    sub-int v2, p3, v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/kehu/b/ax;->getItem(I)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/y;->c:Lcom/waiqin365/lightapp/order/OrderDetailActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/order/OrderDetailActivity;->n(Lcom/waiqin365/lightapp/order/OrderDetailActivity;)V

    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/order/y;->c:Lcom/waiqin365/lightapp/order/OrderDetailActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/order/OrderDetailActivity;->q(Lcom/waiqin365/lightapp/order/OrderDetailActivity;)Landroid/widget/PopupWindow;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/y;->c:Lcom/waiqin365/lightapp/order/OrderDetailActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/order/OrderDetailActivity;->q(Lcom/waiqin365/lightapp/order/OrderDetailActivity;)Landroid/widget/PopupWindow;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V

    :cond_1
    return-void

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/order/y;->c:Lcom/waiqin365/lightapp/order/OrderDetailActivity;

    const v1, 0x7f080549

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/order/OrderDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/order/y;->a:Lcom/waiqin365/lightapp/kehu/b/ax;

    iget-object v2, p0, Lcom/waiqin365/lightapp/order/y;->b:Landroid/widget/ListView;

    invoke-virtual {v2}, Landroid/widget/ListView;->getHeaderViewsCount()I

    move-result v2

    sub-int v2, p3, v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/kehu/b/ax;->getItem(I)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/y;->c:Lcom/waiqin365/lightapp/order/OrderDetailActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/order/OrderDetailActivity;->o(Lcom/waiqin365/lightapp/order/OrderDetailActivity;)V

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/order/y;->c:Lcom/waiqin365/lightapp/order/OrderDetailActivity;

    const v1, 0x7f08024b

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/order/OrderDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/order/y;->a:Lcom/waiqin365/lightapp/kehu/b/ax;

    iget-object v2, p0, Lcom/waiqin365/lightapp/order/y;->b:Landroid/widget/ListView;

    invoke-virtual {v2}, Landroid/widget/ListView;->getHeaderViewsCount()I

    move-result v2

    sub-int v2, p3, v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/kehu/b/ax;->getItem(I)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/y;->c:Lcom/waiqin365/lightapp/order/OrderDetailActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/order/OrderDetailActivity;->p(Lcom/waiqin365/lightapp/order/OrderDetailActivity;)Lcom/waiqin365/lightapp/order/a;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/order/y;->c:Lcom/waiqin365/lightapp/order/OrderDetailActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/order/OrderDetailActivity;->f(Lcom/waiqin365/lightapp/order/OrderDetailActivity;)Lcom/waiqin365/lightapp/order/c/a;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/order/a;->a(Lcom/waiqin365/lightapp/order/c/a;)V

    goto :goto_0
.end method
